//
//  YCOrderDetailTableViewCell.m
//  lianganyuchu
//
//  Created by iMac on 17/2/28.
//  Copyright © 2017年 杭州桑缇电子商务有限公司. All rights reserved.
//

#import "YCOrderDetailTableViewCell.h"

@implementation YCOrderDetailTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    CGFloat width=kMainScreen_Width-2*kDistance;
    [self.backView addShadowWith:CGSizeMake(width, 70)];
    
    [self.label1 setFont:[UIFont LightFontOfSize:14]];
    [self.label2 setFont:[UIFont LightFontOfSize:14]];
    [self.label1 setTextColor:TEXT_LIGHT];
    [self.label2 setTextColor:TEXT_LIGHT];
    
    [self.labOrderId setFont:[UIFont LightFontOfSize:14]];
    [self.labTime setFont:[UIFont LightFontOfSize:14]];
    [self.labOrderId setTextColor:TEXT_LIGHT];
    [self.labTime setTextColor:TEXT_LIGHT];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(void)bindWith:(OrderTable *)order
{
    [self.labOrderId setText:order.order_no];
    [self.labTime setText:order.created_at];
}


@end
